package com.ruoyi.system.service;

import com.ruoyi.system.domain.SysAttendance;

import java.util.List;

/**
 * 考勤Service接口
 * 
 * @author ruoyi
 * @date 2023-01-04
 */
public interface ISysAttendanceService 
{
    /**
     * 查询考勤
     * 
     * @param id 考勤ID
     * @return 考勤
     */
    public SysAttendance selectSysAttendanceById(Long id);

    /**
     * 查询考勤列表
     * 
     * @param sysAttendance 考勤
     * @return 考勤集合
     */
    public List<SysAttendance> selectSysAttendanceList(SysAttendance sysAttendance);
    /**
     * 保存考勤
     *
     * @param sysAttendance 考勤
     * @return 结果
     */
    public int saveSysAttendance(SysAttendance sysAttendance);

    /**
     * 新增考勤
     * 
     * @param sysAttendance 考勤
     * @return 结果
     */
    public int insertSysAttendance(SysAttendance sysAttendance);

    /**
     * 修改考勤
     * 
     * @param sysAttendance 考勤
     * @return 结果
     */
    public int updateSysAttendance(SysAttendance sysAttendance);

    /**
     * 批量删除考勤
     * 
     * @param ids 需要删除的考勤ID
     * @return 结果
     */
    public int deleteSysAttendanceByIds(Long[] ids);

    /**
     * 删除考勤信息
     * 
     * @param id 考勤ID
     * @return 结果
     */
    public int deleteSysAttendanceById(Long id);

    /**
     * 通过月查询
     *
     * @param date
     * @return 结果
     */
    public List<SysAttendance> selectSysAttendanceByMonth(String date);

    /**
     * 通过班组ID查询
     *
     * @param classID
     * @param month
     * @return 结果
     */
    public List<SysAttendance> selectSysAttendanceByClass(String classID,String month);
}
